package com.clwl.supervise.superviseapp.entity.customer;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
    * 标注与库表对应表
    */
@Data
@TableName(value = "TS_TAGGING_TABLE")
public class TsTaggingTable implements Serializable {


    @TableId(value = "ID", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 表中文名
     */
    @TableField(value = "NAME_CH")
    private String nameCh;

    /**
     * 表英文名
     */
    @TableField(value = "NAME_EN")
    private String nameEn;

    /**
     * 标注id
     */
    @TableField(value = "TAGGING_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long taggingId;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME")
    private Date createTime;

    /**
     * 临时存储标签名称
     */
    @TableField(exist = false)
    private String taggingName;


    private static final long serialVersionUID = 1L;
}
